The compensation resistor compensates for errors introduced into the voltage divider network due to input bias current. Its value should be equal to the parallel equivalent of Rinput and Rfeedback.